package pl.skubicha.utils;

import org.springframework.data.domain.Sort.Direction;

public class Utils {

	public static Direction getSortingDirection( String dir ) {
		try {
			return Direction.valueOf( dir );
		} catch ( Exception ex ) {
			return Direction.ASC;
		}
	}
}